package com.hyh.admin.domain;

import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hyh.ad.common.core.domain.BaseEntity;
import com.hyh.ad.common.enums.Message;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;


/*
 * 聊天消息记录表
 *
 */
@Data
@ApiModel(value = "Messages对象", description = "聊天消息记录表")
public class Messages extends BaseEntity implements Serializable {

    /*
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /*
     * 发送者id
     */
    private Long senderId;

    /*
     * 接收者id
     */
    private Long receiverId;

    /*
     * 消息内容
     */
    private String content;

    /*
     * 消息类型
     */
    private String messageType;

    /*
     * 消息状态
     */
    private String readStatus;
}
